package com.jeespring.common.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Title: PageResult
 * @Description:
 * @Author 张朝阳
 * @Date 2019/12/20 14:42
 */

@Data
public class PageResult<T> implements Serializable {

    private Long total;

    private int pageSize;

    private int pageNum;

    private List<T> rows;

    private int code;

    private int message;


    public PageResult() {
    }

    public PageResult(List<T> rows) {
        this.rows = rows;
    }

    public PageResult(Long total, int pageSize, int pageNum, List<T> rows) {
        this.total = total;
        this.pageSize = pageSize;
        this.pageNum = pageNum;
        this.rows = rows;
    }

}
